﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MongoServices
{
	/// <summary>
	/// The response from the save method in the <see cref="ReadWriteService&lt;T&gt;>."/>
	/// </summary>
	public enum SaveResult
	{
		/// <summary>
		/// Indicates that the save did not work correctly because one of the before save processes failed.
		/// </summary>
		BeforeSaveFailure,

		/// <summary>
		/// Indicates that the save was successful.
		/// </summary>
		Saved,

		/// <summary>
		/// Indicates that the save did not work correctly because it failed validation.
		/// </summary>
		ValidationFailure
	}
}
